package com.net.shop.car.manager.api.volley.response.dingdan;

import com.net.shop.car.manager.api.volley.Response;
import com.net.shop.car.manager.utils.Constants;
import com.net.shop.car.manager.utils.StringUtils;

/**
 * @author Deve
 *
 */
public class DingdanOrderResponse extends Response {

	private int[] dingdans = new int[6];
	
	public static final String[] DINGDAN_STRINGS = 
			new String[]{"vbmail","outline","online","drawback","finish","oilcard"};
	
	public DingdanOrderResponse() {
		super(Constants.DINGDAN_ORDER);
	}
	
	@Override
	public String[] getContentTags() {
		return DINGDAN_STRINGS;
	}
	
	@Override
	public void parseContent(String content, int index) {
		dingdans[index] = StringUtils.filterIntegerNull(content);
	}

	public int[] getDingdans() {
		return dingdans;
	}
}
